package com.hnevc.cnlizhimaomxbc;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import androidx.appcompat.app.AppCompatActivity;

public class DinActivity extends AppCompatActivity {
    private ImageView sy_tu;
    private ImageView dc_tu;
    private ImageView wo_tu;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activty_din);
        initView();
        initData();
        initEvent();
    }
    private void initView(){
        sy_tu = (ImageView) findViewById(R.id.sy_tu);
        dc_tu = (ImageView) findViewById(R.id.dc_tu);
        wo_tu = (ImageView) findViewById(R.id.wo_tu);

    }
    private void initData(){

    }
    private void initEvent(){
        wo_tu.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(DinActivity.this,MeActivity.class);
                startActivityForResult(intent,1);
            }
        });
        dc_tu.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(DinActivity.this, EatActivity.class);
                startActivityForResult(intent,1);
            }
        });
        sy_tu.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(DinActivity.this,HomeActivity.class);
                startActivityForResult(intent,1);
            }
        });

    }
}